package cn.echoedu.command.base;

import javax.servlet.http.HttpServletResponse;

public class Invoker {
  private Command command;
  public void setCommand(Command command){
	  this.command=command;
  }
  public void runSuccessCommand(SuccessParam successparam){
	  command.executeSuccess(successparam);
  }
  public void runFailureCommand(FailureParam failureparam){
	  command.executeFailure(failureparam);
  }
  public  void execute(ExecuteParam executeparam){
	  command.execute(executeparam);
   }
}
